core: Preemptively error out on paths longer than PATH_MAX
authorColin Walters <walters@verbum.org>
Thu, 22 Dec 2011 21:50:01 +0000 (16:50 -0500)
committerColin Walters <walters@verbum.org>
Thu, 22 Dec 2011 21:50:01 +0000 (16:50 -0500)
commit786ce3b560eca0dee7b632c120210b8e4a9c4e7b
treec7d3e697c40078bc7c44fb8f1816c93e7551d241
parent3292dcb6d62afc8c7546fa712f0e16b2e0b23c25
core: Preemptively error out on paths longer than PATH_MAX

Just noticed this while thinking like an attacker.
src/libotutil/ot-unix-utils.c